package com.yanqu.road.entity.log.cross.stronghold;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

@FieldTypeAnnotation(tableName = "t_l_ck_stronghold_npc", desc = "商会据点战野外据点贸易日志", autoSave = true, uploadCk = true, isCross = true)
public class LogStrongholdNpc extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动id", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "事件id")
    private int eventId;
    @FieldTypeAnnotation(desc = "据点名称")
    private String wildName;
    @FieldTypeAnnotation(desc = "消耗")
    private String consume;
    @FieldTypeAnnotation(desc = "获得")
    private String reward;

    public LogStrongholdNpc(int activityId, long userId, int eventId, String wildName, String consume, String reward) {
        this.activityId = activityId;
        this.userId = userId;
        this.eventId = eventId;
        this.wildName = wildName;
        this.consume = consume;
        this.reward = reward;
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
